package com.sali.design_pattern.b_abstract_factory_pattern.lesson_01.factory.impl;

import com.sali.design_pattern.b_abstract_factory_pattern.lesson_01.factory.IFamilyFactory;
import com.sali.design_pattern.b_abstract_factory_pattern.lesson_01.product.IChair;
import com.sali.design_pattern.b_abstract_factory_pattern.lesson_01.product.IDesk;
import com.sali.design_pattern.b_abstract_factory_pattern.lesson_01.product.impl.PlasticChair;
import com.sali.design_pattern.b_abstract_factory_pattern.lesson_01.product.impl.PlasticDesk;

/**
 * @description:
 * @author: zhang hang
 * @date: 2023/3/18 19:48.
 * @version: 1.0
 */
public class PlasticFamilyFactory implements IFamilyFactory {
    @Override
    public IChair createChair() {
        return new PlasticChair();
    }

    @Override
    public IDesk createDesk() {
        return new PlasticDesk();
    }
}
